package com.xuecheng.api.search;

import com.xuecheng.framework.domain.course.TeachplanMediaPub;
import com.xuecheng.framework.domain.search.TeachplanMediaSearch;
import com.xuecheng.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * 课程计划节点对应的视频URL  ES查询
 */
@Api(value = "课程对应的视频搜索接口", tags = {"提供课程对应视频的搜索"})
public interface EsTeachplanMediaControllerApi {
    /**
     * 根据课程计划的节点id查询课程计划节点对应的视频地址
     *
     * @param teachplanId 课程计划id
     * @return ES里面记录的课程计划和视频url
     */
    @ApiOperation("根据课程计划节点ID查询对应的视频URL")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "课程计划节点id", name = "teachplanId", paramType = "path")
    })
    QueryResponseResult<TeachplanMediaSearch> getTeachplanMediaByTeachplanId(String[] teachplanId);
}
